<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>预定义常量</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="pthreads.configuration.html">« 运行时配置</a></li>
      <li style="float: right;"><a href="class.threaded.html">Threaded »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.pthreads.html">pthreads</a></li>
    <li>预定义常量</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="pthreads.constants" class="appendix">
 <h1>预定义常量</h1>

 <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
 <p class="para">
  <dl>
   
    <dt id="constant.pthreads-inherit-all">
     <strong><code>PTHREADS_INHERIT_ALL</code></strong>
     (<span class="type">integer</span>)
    </dt>

    <dd>

     <span class="simpara">
      线程的默认选项。线程开始的时候，pthreads 扩展会将环境复制到线程上下文中。
     </span>
    </dd>

   
   
    <dt id="constant.pthreads-inherit-none">
     <strong><code>PTHREADS_INHERIT_NONE</code></strong>
     (<span class="type">integer</span>)
    </dt>

    <dd>

     <span class="simpara">
      新线程开始时，不继承任何内容。
     </span>
    </dd>

   
   
    <dt id="constant.pthreads-inherit-ini">
     <strong><code>PTHREADS_INHERIT_INI</code></strong>
     (<span class="type">integer</span>)
    </dt>

    <dd>

     <span class="simpara">
      新线程开始时，仅继承 INI 配置。
     </span>
    </dd>

   
   
    <dt id="constant.pthreads-inherit-constants">
     <strong><code>PTHREADS_INHERIT_CONSTANTS</code></strong>
     (<span class="type">integer</span>)
    </dt>

    <dd>

     <span class="simpara">
      新线程开始时，继承用户定义的常量。
     </span>
    </dd>

   
   
    <dt id="constant.pthreads-inherit-classes">
     <strong><code>PTHREADS_INHERIT_CLASSES</code></strong>
     (<span class="type">integer</span>)
    </dt>

    <dd>

     <span class="simpara">
      新线程开始时，继承用户定义的类。
     </span>
    </dd>

   
   
    <dt id="constant.pthreads-inherit-functions">
     <strong><code>PTHREADS_INHERIT_FUNCTIONS</code></strong>
     (<span class="type">integer</span>)
    </dt>

    <dd>

     <span class="simpara">
      新线程开始时，继承用户定义的函数。
     </span>
    </dd>

   
   
    <dt id="constant.pthreads-inherit-includes">
     <strong><code>PTHREADS_INHERIT_INCLUDES</code></strong>
     (<span class="type">integer</span>)
    </dt>

    <dd>

     <span class="simpara">
      新线程开始时，继承包含文件。
     </span>
    </dd>

   
   
    <dt id="constant.pthreads-inherit-comments">
     <strong><code>PTHREADS_INHERIT_COMMENTS</code></strong>
     (<span class="type">integer</span>)
    </dt>

    <dd>

     <span class="simpara">
      新线程开始时，继承所有的注释。
     </span>
    </dd>

   
   
    <dt id="constant.pthreads-allow-headers">
     <strong><code>PTHREADS_ALLOW_HEADERS</code></strong>
     (<span class="type">integer</span>)
    </dt>

    <dd>

     <span class="simpara">
      允许新线程向标准输出发送头信息（通常情况下是被禁止的）。
     </span>
    </dd>

   
  </dl>

 </p>
</div>
</div></div></body></html>